using Microsoft.AspNetCore.Builder;

namespace CommunityToolKit.RefreshToken;

public static class RefreshTokenMiddlewareExtensions
{
    public static IApplicationBuilder UseRefreshToken(this IApplicationBuilder builder,Func<string, string, string> generateJwtToken)
    {
        return builder.UseMiddleware<RefreshTokenMiddleware>(builder, generateJwtToken);
    }
}